﻿using Microsoft.SharePoint;

namespace Eneta.Portal.Forum.Core.Service.Builders
{
    public class CategoryListBuilder : ListBuilder
    {
        // Methods
        public CategoryListBuilder()
        {
            base.listName = "spforums_category";
        }

        public override void AddFields()
        {
            base.AddFieldToList("SortOrder", (SPFieldType)9, true);
        }

        public override void AddSampleData()
        {
            if (base.ListExists)
            {
                string[] values = new string[] { "Title", "Test Category 1", "SortOrder", "1" };
                base.AddListValues(values);
            }
        }
    }
}
